package org.jb.coinche.client.business.handler.impl;

import org.jb.coinche.client.business.handler.DisconnectHandler;
import org.jb.coinche.client.business.message.RemoveUserMessage;
import org.jb.coinche.client.guistatemachine.MessageSender;

import com.google.inject.Inject;
import com.google.inject.Singleton;

@Singleton
public class DisconnectHandlerImpl implements DisconnectHandler {

	@Inject
	private MessageSender sender;
	
	@Override
	public void disconnect() {
		sender.send( new RemoveUserMessage() );
		
	}

}
